package com.woniuxy.goods.mapper;

import com.woniuxy.goods.module.goods.Goods;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {

    List<Goods> selectGoodsByCons(@Param("name") String name , @Param("tid") int tid);

    @Insert("insert into t_goods (gname ,type_id ,price ,storeCount)values (#{gname},#{goodsType.id},#{price},#{storeCount})")
    int  insert(Goods goods);

    Goods selectGoodsByKey(int id);
}
